package chp08.ext;

public class Ext2 {

    public static void main(String[] args) {
        //描述3个班，每个班5个同学的成绩
        int[][] scores = {
                {12,45,64,1,35},
                {56,4,564,34,2},
                {78,3,45,9,87}
        };
        System.out.println("外层数组的长度:"+scores.length);
        System.out.println("内层数组的长度:"+scores[0].length);
        System.out.println(scores[1][3]);

        for (int i = 0; i < scores.length; i++) {
            for (int j = 0; j < scores[0].length; j++) {
                System.out.print(scores[i][j]+"\t");
            }
            System.out.println();
        }
    }
}
